|
Ubicación en el Menú |
---|
Herramientas -> Guardar imagen... |
Entornos de trabajo |
Todos |
Atajo de teclado por defecto |
Ninguno |
Introducido en versión |
- |
Ver también |
... |
Este comando abre un letrero de diálogo para guardar el contenido actual de la vista 3D en un archivo que puede ser de diversos formatos de imagen. Adicionalmente, puedes cambiar el ratio de aspecto y la resolución de la captura de pantalla utilizando el botón de "Opciones" para tener acceso a más parámetros.
The Save image dialog box after pressing the Extended button
Current
This option uses the background of the 3D view.White
Black
Transparent
Not all image formats support transparency.Offscreen (New)
This is the default method. This method supports anti-aliasing. Technical information: The most important classes for this method are Qt's QOffscreenSurface and QOpenGLFramebufferObject.Offscreen (Old)
This method does not work on many modern Linux systems as it relies on the graphics driver. This method does not support anti-aliasing. Technical information: This is a real off-screen rendering method that only uses functions from the Coin3d library.Framebuffer (custom)
This method supports anti-aliasing. Technical information: If anti-aliasing is off, this method reads the image directly from the graphics renderer, else it renders to a framebuffer and gets the image from there. The key part of this method is Qt's QOpenGLFramebufferObject class.Framebuffer (as is)
This method uses the same techniques as Framebuffer (custom). It also supports anti-aliasing but has some limitations related to custom sizes and always uses the current background of the 3D view.See also: Preferences Editor.
See also: Autogenerated API documentation and FreeCAD Scripting Basics.
It is possible to create screenshots with Python code.
Gui.ActiveDocument.ActiveView.saveImage("D:/temp/test.png", 1656, 783, "Current")
This script saves a series of screenshots of different sizes and from different directions. The camera type, orthographic or perspective, is also changed.
import FreeCADGui as Gui
import Part
out_dir = "D:/temp/"
name = "Blade"
view = Gui.ActiveDocument.ActiveView
# Create images with different Views, Cameras and sizes
for p in ["PerspectiveCamera", "OrthographicCamera"]:
Gui.SendMsgToActiveView(p)
for f in ["ViewAxo", "ViewFront", "ViewTop"]:
Gui.SendMsgToActiveView(f)
for x, y in [[500, 500], [1000, 3000], [3000, 1000], [3000, 3000], [8000, 8000]]:
view.saveImage(out_dir + name + "_" + p + "_" + f + "_" + str(x) + "_" + str(y) + ".jpg", x, y, "White")
view.saveImage(out_dir + name + "_" + p + "_" + f + "_" + str(x) + "_" + str(y) + ".png", x, y, "Transparent")
# Close active document
App.closeDocument(App.ActiveDocument.Name)